using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using WP.Commons;
using WP.Modules;
using WP.DB;
namespace MaxLeaf
{
	/// <summary>
    /// Summary description for frmOptions.
	/// </summary>
	public class frmOptions : BaseQryRpt 
	{
		private System.Windows.Forms.Button btnCancel;
        private System.Windows.Forms.Label lblLoginName;
        private System.Windows.Forms.Button btnOk;
		private System.Windows.Forms.TabPage tbpMisc;
		private System.Windows.Forms.TabControl tbcOptions;
		private string strOptionIniFile;
        private LoginUtil loginUtil;
        private System.Windows.Forms.TextBox txtDefaultDatabase;
        private Label label1;
        private ColorDialog colorDialog;
        private Button btnColor;
        private TabPage tbpViewSummary;
        private CheckBox chkMF;
        private CheckBox chkEX;
        private CheckBox chkTP;
        private CheckBox chkTW;
        private CheckBox chkRm;
        private CheckBox chkPO;
        private CheckBox chkIM;
        private CheckBox chkOe;
        private CheckBox chkAr;
        private CheckBox chkAP;
        private CheckBox chkGL;
        private TabPage tabKey;
        private GroupBox groupBox4;
        private GroupBox groupBox3;
        private RadioButton rdo1F5;
        private GroupBox groupBox1;
        private RadioButton rdo4F12;
        private RadioButton rdo4F11;
        private RadioButton rdo4F10;
        private RadioButton rdo4F9;
        private GroupBox groupBox2;
        private RadioButton rdo3F12;
        private RadioButton rdo3F11;
        private RadioButton rdo3F10;
        private RadioButton rdo3F9;
        private RadioButton rdo2F8;
        private RadioButton rdo2F7;
        private RadioButton rdo2F6;
        private RadioButton rdo2F5;
        private RadioButton rdo1F8;
        private RadioButton rdo1F7;
        private RadioButton rdo1F6;
        private RadioButton rdo4ShiftDown;
        private RadioButton rdo3Down;
        private CheckBox chkPd;
        private TextBox txtDefaultSrever;
        private Label label2;
        private GroupBox groupBox5;
        private RadioButton rdoPrevTab_PageUp;
        private Label label3;
        private RadioButton rdoPrevTab_Left;
        private GroupBox groupBox6;
        private RadioButton rdoNextTab_PageDown;
        private Label label4;
        private RadioButton rdoNextTab_Right;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public frmOptions()
		{
			InitializeComponent();
            this.LoadAllControl(new ArrayList(this.Controls));  
            this.mblnNeedSaveStartPositionInfo = false;
            tbcOptions.DrawMode = TabDrawMode.OwnerDrawFixed;  
		}

		/// <summary>
        /// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.tbcOptions = new System.Windows.Forms.TabControl();
            this.tbpViewSummary = new System.Windows.Forms.TabPage();
            this.chkPd = new System.Windows.Forms.CheckBox();
            this.chkMF = new System.Windows.Forms.CheckBox();
            this.chkEX = new System.Windows.Forms.CheckBox();
            this.chkTP = new System.Windows.Forms.CheckBox();
            this.chkTW = new System.Windows.Forms.CheckBox();
            this.chkRm = new System.Windows.Forms.CheckBox();
            this.chkPO = new System.Windows.Forms.CheckBox();
            this.chkIM = new System.Windows.Forms.CheckBox();
            this.chkOe = new System.Windows.Forms.CheckBox();
            this.chkAr = new System.Windows.Forms.CheckBox();
            this.chkAP = new System.Windows.Forms.CheckBox();
            this.chkGL = new System.Windows.Forms.CheckBox();
            this.tbpMisc = new System.Windows.Forms.TabPage();
            this.txtDefaultSrever = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.btnColor = new System.Windows.Forms.Button();
            this.label1 = new System.Windows.Forms.Label();
            this.txtDefaultDatabase = new System.Windows.Forms.TextBox();
            this.lblLoginName = new System.Windows.Forms.Label();
            this.tabKey = new System.Windows.Forms.TabPage();
            this.groupBox6 = new System.Windows.Forms.GroupBox();
            this.rdoNextTab_PageDown = new System.Windows.Forms.RadioButton();
            this.label4 = new System.Windows.Forms.Label();
            this.rdoNextTab_Right = new System.Windows.Forms.RadioButton();
            this.groupBox5 = new System.Windows.Forms.GroupBox();
            this.rdoPrevTab_PageUp = new System.Windows.Forms.RadioButton();
            this.label3 = new System.Windows.Forms.Label();
            this.rdoPrevTab_Left = new System.Windows.Forms.RadioButton();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.rdo4ShiftDown = new System.Windows.Forms.RadioButton();
            this.rdo4F12 = new System.Windows.Forms.RadioButton();
            this.rdo4F11 = new System.Windows.Forms.RadioButton();
            this.rdo4F10 = new System.Windows.Forms.RadioButton();
            this.rdo4F9 = new System.Windows.Forms.RadioButton();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.rdo3F12 = new System.Windows.Forms.RadioButton();
            this.rdo3Down = new System.Windows.Forms.RadioButton();
            this.rdo3F11 = new System.Windows.Forms.RadioButton();
            this.rdo3F10 = new System.Windows.Forms.RadioButton();
            this.rdo3F9 = new System.Windows.Forms.RadioButton();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.rdo2F8 = new System.Windows.Forms.RadioButton();
            this.rdo2F7 = new System.Windows.Forms.RadioButton();
            this.rdo2F6 = new System.Windows.Forms.RadioButton();
            this.rdo2F5 = new System.Windows.Forms.RadioButton();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.rdo1F8 = new System.Windows.Forms.RadioButton();
            this.rdo1F7 = new System.Windows.Forms.RadioButton();
            this.rdo1F6 = new System.Windows.Forms.RadioButton();
            this.rdo1F5 = new System.Windows.Forms.RadioButton();
            this.btnCancel = new System.Windows.Forms.Button();
            this.btnOk = new System.Windows.Forms.Button();
            this.colorDialog = new System.Windows.Forms.ColorDialog();
            this.tbcOptions.SuspendLayout();
            this.tbpViewSummary.SuspendLayout();
            this.tbpMisc.SuspendLayout();
            this.tabKey.SuspendLayout();
            this.groupBox6.SuspendLayout();
            this.groupBox5.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.SuspendLayout();
            // 
            // tbcOptions
            // 
            this.tbcOptions.Controls.Add(this.tbpViewSummary);
            this.tbcOptions.Controls.Add(this.tbpMisc);
            this.tbcOptions.Controls.Add(this.tabKey);
            this.tbcOptions.Location = new System.Drawing.Point(16, 8);
            this.tbcOptions.Name = "tbcOptions";
            this.tbcOptions.SelectedIndex = 0;
            this.tbcOptions.Size = new System.Drawing.Size(352, 312);
            this.tbcOptions.TabIndex = 0;
            this.tbcOptions.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.tbcOptions_DrawItem);
            // 
            // tbpViewSummary
            // 
            this.tbpViewSummary.Controls.Add(this.chkPd);
            this.tbpViewSummary.Controls.Add(this.chkMF);
            this.tbpViewSummary.Controls.Add(this.chkEX);
            this.tbpViewSummary.Controls.Add(this.chkTP);
            this.tbpViewSummary.Controls.Add(this.chkTW);
            this.tbpViewSummary.Controls.Add(this.chkRm);
            this.tbpViewSummary.Controls.Add(this.chkPO);
            this.tbpViewSummary.Controls.Add(this.chkIM);
            this.tbpViewSummary.Controls.Add(this.chkOe);
            this.tbpViewSummary.Controls.Add(this.chkAr);
            this.tbpViewSummary.Controls.Add(this.chkAP);
            this.tbpViewSummary.Controls.Add(this.chkGL);
            this.tbpViewSummary.Location = new System.Drawing.Point(4, 22);
            this.tbpViewSummary.Name = "tbpViewSummary";
            this.tbpViewSummary.Size = new System.Drawing.Size(344, 286);
            this.tbpViewSummary.TabIndex = 0;
            this.tbpViewSummary.Text = "Summary";
            this.tbpViewSummary.UseVisualStyleBackColor = true;
            // 
            // chkPd
            // 
            this.chkPd.AutoSize = true;
            this.chkPd.Location = new System.Drawing.Point(187, 151);
            this.chkPd.Name = "chkPd";
            this.chkPd.Size = new System.Drawing.Size(77, 17);
            this.chkPd.TabIndex = 11;
            this.chkPd.Text = "Production";
            this.chkPd.UseVisualStyleBackColor = true;
            // 
            // chkMF
            // 
            this.chkMF.AutoSize = true;
            this.chkMF.Location = new System.Drawing.Point(188, 128);
            this.chkMF.Name = "chkMF";
            this.chkMF.Size = new System.Drawing.Size(137, 17);
            this.chkMF.TabIndex = 10;
            this.chkMF.Text = "Management Functions";
            this.chkMF.UseVisualStyleBackColor = true;
            // 
            // chkEX
            // 
            this.chkEX.AutoSize = true;
            this.chkEX.Location = new System.Drawing.Point(188, 105);
            this.chkEX.Name = "chkEX";
            this.chkEX.Size = new System.Drawing.Size(113, 17);
            this.chkEX.TabIndex = 9;
            this.chkEX.Text = "Excutive Summary";
            this.chkEX.UseVisualStyleBackColor = true;
            // 
            // chkTP
            // 
            this.chkTP.AutoSize = true;
            this.chkTP.Location = new System.Drawing.Point(188, 82);
            this.chkTP.Name = "chkTP";
            this.chkTP.Size = new System.Drawing.Size(94, 17);
            this.chkTP.TabIndex = 8;
            this.chkTP.Text = "Transportation";
            this.chkTP.UseVisualStyleBackColor = true;
            // 
            // chkTW
            // 
            this.chkTW.AutoSize = true;
            this.chkTW.Location = new System.Drawing.Point(187, 174);
            this.chkTW.Name = "chkTW";
            this.chkTW.Size = new System.Drawing.Size(114, 17);
            this.chkTW.TabIndex = 7;
            this.chkTW.Text = "Trader WorkSheet";
            this.chkTW.UseVisualStyleBackColor = true;
            this.chkTW.Visible = false;
            // 
            // chkRm
            // 
            this.chkRm.AutoSize = true;
            this.chkRm.Location = new System.Drawing.Point(189, 59);
            this.chkRm.Name = "chkRm";
            this.chkRm.Size = new System.Drawing.Size(154, 17);
            this.chkRm.TabIndex = 6;
            this.chkRm.Text = "Reman and Bill of Materials";
            this.chkRm.UseVisualStyleBackColor = true;
            // 
            // chkPO
            // 
            this.chkPO.AutoSize = true;
            this.chkPO.Location = new System.Drawing.Point(22, 174);
            this.chkPO.Name = "chkPO";
            this.chkPO.Size = new System.Drawing.Size(151, 17);
            this.chkPO.TabIndex = 5;
            this.chkPO.Text = "Purchasing and Receiving";
            this.chkPO.UseVisualStyleBackColor = true;
            // 
            // chkIM
            // 
            this.chkIM.AutoSize = true;
            this.chkIM.Location = new System.Drawing.Point(22, 151);
            this.chkIM.Name = "chkIM";
            this.chkIM.Size = new System.Drawing.Size(135, 17);
            this.chkIM.TabIndex = 4;
            this.chkIM.Text = "Inventory Management";
            this.chkIM.UseVisualStyleBackColor = true;
            // 
            // chkOe
            // 
            this.chkOe.AutoSize = true;
            this.chkOe.Location = new System.Drawing.Point(22, 128);
            this.chkOe.Name = "chkOe";
            this.chkOe.Size = new System.Drawing.Size(99, 17);
            this.chkOe.TabIndex = 3;
            this.chkOe.Text = "Customer Order";
            this.chkOe.UseVisualStyleBackColor = true;
            // 
            // chkAr
            // 
            this.chkAr.AutoSize = true;
            this.chkAr.Location = new System.Drawing.Point(22, 105);
            this.chkAr.Name = "chkAr";
            this.chkAr.Size = new System.Drawing.Size(128, 17);
            this.chkAr.TabIndex = 2;
            this.chkAr.Text = "Accounts Receivable";
            this.chkAr.UseVisualStyleBackColor = true;
            // 
            // chkAP
            // 
            this.chkAP.AutoSize = true;
            this.chkAP.Location = new System.Drawing.Point(22, 82);
            this.chkAP.Name = "chkAP";
            this.chkAP.Size = new System.Drawing.Size(112, 17);
            this.chkAP.TabIndex = 1;
            this.chkAP.Text = "Accounts Payable";
            this.chkAP.UseVisualStyleBackColor = true;
            // 
            // chkGL
            // 
            this.chkGL.AutoSize = true;
            this.chkGL.Location = new System.Drawing.Point(22, 59);
            this.chkGL.Name = "chkGL";
            this.chkGL.Size = new System.Drawing.Size(99, 17);
            this.chkGL.TabIndex = 0;
            this.chkGL.Text = "General Ledger";
            this.chkGL.UseVisualStyleBackColor = true;
            // 
            // tbpMisc
            // 
            this.tbpMisc.Controls.Add(this.txtDefaultSrever);
            this.tbpMisc.Controls.Add(this.label2);
            this.tbpMisc.Controls.Add(this.btnColor);
            this.tbpMisc.Controls.Add(this.label1);
            this.tbpMisc.Controls.Add(this.txtDefaultDatabase);
            this.tbpMisc.Controls.Add(this.lblLoginName);
            this.tbpMisc.Location = new System.Drawing.Point(4, 22);
            this.tbpMisc.Name = "tbpMisc";
            this.tbpMisc.Size = new System.Drawing.Size(344, 286);
            this.tbpMisc.TabIndex = 2;
            this.tbpMisc.Text = "Misc";
            this.tbpMisc.UseVisualStyleBackColor = true;
            // 
            // txtDefaultSrever
            // 
            this.txtDefaultSrever.Location = new System.Drawing.Point(161, 56);
            this.txtDefaultSrever.Name = "txtDefaultSrever";
            this.txtDefaultSrever.Size = new System.Drawing.Size(120, 20);
            this.txtDefaultSrever.TabIndex = 26;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(25, 56);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(96, 16);
            this.label2.TabIndex = 27;
            this.label2.Text = "Default Server";
            // 
            // btnColor
            // 
            this.btnColor.ForeColor = System.Drawing.SystemColors.ControlText;
            this.btnColor.Location = new System.Drawing.Point(161, 137);
            this.btnColor.Name = "btnColor";
            this.btnColor.Size = new System.Drawing.Size(120, 21);
            this.btnColor.TabIndex = 25;
            this.btnColor.UseVisualStyleBackColor = true;
            this.btnColor.Click += new System.EventHandler(this.btnColor_Click);
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(25, 138);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(130, 20);
            this.label1.TabIndex = 24;
            this.label1.Text = "Company Name Color:";
            // 
            // txtDefaultDatabase
            // 
            this.txtDefaultDatabase.Location = new System.Drawing.Point(161, 97);
            this.txtDefaultDatabase.Name = "txtDefaultDatabase";
            this.txtDefaultDatabase.Size = new System.Drawing.Size(120, 20);
            this.txtDefaultDatabase.TabIndex = 21;
            // 
            // lblLoginName
            // 
            this.lblLoginName.Location = new System.Drawing.Point(25, 97);
            this.lblLoginName.Name = "lblLoginName";
            this.lblLoginName.Size = new System.Drawing.Size(96, 16);
            this.lblLoginName.TabIndex = 22;
            this.lblLoginName.Text = "Default DataBase:";
            // 
            // tabKey
            // 
            this.tabKey.Controls.Add(this.groupBox6);
            this.tabKey.Controls.Add(this.groupBox5);
            this.tabKey.Controls.Add(this.groupBox1);
            this.tabKey.Controls.Add(this.groupBox2);
            this.tabKey.Controls.Add(this.groupBox4);
            this.tabKey.Controls.Add(this.groupBox3);
            this.tabKey.Location = new System.Drawing.Point(4, 22);
            this.tabKey.Name = "tabKey";
            this.tabKey.Padding = new System.Windows.Forms.Padding(3);
            this.tabKey.Size = new System.Drawing.Size(344, 286);
            this.tabKey.TabIndex = 3;
            this.tabKey.Text = "Shortcut Key";
            this.tabKey.UseVisualStyleBackColor = true;
            // 
            // groupBox6
            // 
            this.groupBox6.Controls.Add(this.rdoNextTab_PageDown);
            this.groupBox6.Controls.Add(this.label4);
            this.groupBox6.Controls.Add(this.rdoNextTab_Right);
            this.groupBox6.Location = new System.Drawing.Point(15, 236);
            this.groupBox6.Name = "groupBox6";
            this.groupBox6.Size = new System.Drawing.Size(310, 38);
            this.groupBox6.TabIndex = 5;
            this.groupBox6.TabStop = false;
            this.groupBox6.Text = "Change to Next TAB";
            // 
            // rdoNextTab_PageDown
            // 
            this.rdoNextTab_PageDown.AutoSize = true;
            this.rdoNextTab_PageDown.Location = new System.Drawing.Point(162, 19);
            this.rdoNextTab_PageDown.Name = "rdoNextTab_PageDown";
            this.rdoNextTab_PageDown.Size = new System.Drawing.Size(81, 17);
            this.rdoNextTab_PageDown.TabIndex = 6;
            this.rdoNextTab_PageDown.Text = "Page Down";
            this.rdoNextTab_PageDown.UseVisualStyleBackColor = true;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(17, 21);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(34, 13);
            this.label4.TabIndex = 5;
            this.label4.Text = "Ctrl + ";
            // 
            // rdoNextTab_Right
            // 
            this.rdoNextTab_Right.AutoSize = true;
            this.rdoNextTab_Right.Checked = true;
            this.rdoNextTab_Right.Location = new System.Drawing.Point(67, 19);
            this.rdoNextTab_Right.Name = "rdoNextTab_Right";
            this.rdoNextTab_Right.Size = new System.Drawing.Size(80, 17);
            this.rdoNextTab_Right.TabIndex = 4;
            this.rdoNextTab_Right.TabStop = true;
            this.rdoNextTab_Right.Text = "Arrow Right";
            this.rdoNextTab_Right.UseVisualStyleBackColor = true;
            // 
            // groupBox5
            // 
            this.groupBox5.Controls.Add(this.rdoPrevTab_PageUp);
            this.groupBox5.Controls.Add(this.label3);
            this.groupBox5.Controls.Add(this.rdoPrevTab_Left);
            this.groupBox5.Location = new System.Drawing.Point(14, 190);
            this.groupBox5.Name = "groupBox5";
            this.groupBox5.Size = new System.Drawing.Size(310, 38);
            this.groupBox5.TabIndex = 4;
            this.groupBox5.TabStop = false;
            this.groupBox5.Text = "Change to prev TAB";
            // 
            // rdoPrevTab_PageUp
            // 
            this.rdoPrevTab_PageUp.AutoSize = true;
            this.rdoPrevTab_PageUp.Location = new System.Drawing.Point(162, 19);
            this.rdoPrevTab_PageUp.Name = "rdoPrevTab_PageUp";
            this.rdoPrevTab_PageUp.Size = new System.Drawing.Size(67, 17);
            this.rdoPrevTab_PageUp.TabIndex = 6;
            this.rdoPrevTab_PageUp.Text = "Page Up";
            this.rdoPrevTab_PageUp.UseVisualStyleBackColor = true;
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(17, 21);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(34, 13);
            this.label3.TabIndex = 5;
            this.label3.Text = "Ctrl + ";
            // 
            // rdoPrevTab_Left
            // 
            this.rdoPrevTab_Left.AutoSize = true;
            this.rdoPrevTab_Left.Checked = true;
            this.rdoPrevTab_Left.Location = new System.Drawing.Point(67, 19);
            this.rdoPrevTab_Left.Name = "rdoPrevTab_Left";
            this.rdoPrevTab_Left.Size = new System.Drawing.Size(73, 17);
            this.rdoPrevTab_Left.TabIndex = 4;
            this.rdoPrevTab_Left.TabStop = true;
            this.rdoPrevTab_Left.Text = "Arrow Left";
            this.rdoPrevTab_Left.UseVisualStyleBackColor = true;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.rdo4ShiftDown);
            this.groupBox1.Controls.Add(this.rdo4F12);
            this.groupBox1.Controls.Add(this.rdo4F11);
            this.groupBox1.Controls.Add(this.rdo4F10);
            this.groupBox1.Controls.Add(this.rdo4F9);
            this.groupBox1.Location = new System.Drawing.Point(15, 144);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(310, 38);
            this.groupBox1.TabIndex = 3;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Search by Name or Description";
            // 
            // rdo4ShiftDown
            // 
            this.rdo4ShiftDown.AutoSize = true;
            this.rdo4ShiftDown.Checked = true;
            this.rdo4ShiftDown.Location = new System.Drawing.Point(15, 18);
            this.rdo4ShiftDown.Name = "rdo4ShiftDown";
            this.rdo4ShiftDown.Size = new System.Drawing.Size(116, 17);
            this.rdo4ShiftDown.TabIndex = 8;
            this.rdo4ShiftDown.TabStop = true;
            this.rdo4ShiftDown.Text = "Shift + Arrow Down";
            this.rdo4ShiftDown.UseVisualStyleBackColor = true;
            // 
            // rdo4F12
            // 
            this.rdo4F12.AutoSize = true;
            this.rdo4F12.Location = new System.Drawing.Point(223, 18);
            this.rdo4F12.Name = "rdo4F12";
            this.rdo4F12.Size = new System.Drawing.Size(43, 17);
            this.rdo4F12.TabIndex = 7;
            this.rdo4F12.Text = "F12";
            this.rdo4F12.UseVisualStyleBackColor = true;
            // 
            // rdo4F11
            // 
            this.rdo4F11.AutoSize = true;
            this.rdo4F11.Location = new System.Drawing.Point(266, 19);
            this.rdo4F11.Name = "rdo4F11";
            this.rdo4F11.Size = new System.Drawing.Size(43, 17);
            this.rdo4F11.TabIndex = 6;
            this.rdo4F11.Text = "F11";
            this.rdo4F11.UseVisualStyleBackColor = true;
            // 
            // rdo4F10
            // 
            this.rdo4F10.AutoSize = true;
            this.rdo4F10.Location = new System.Drawing.Point(137, 19);
            this.rdo4F10.Name = "rdo4F10";
            this.rdo4F10.Size = new System.Drawing.Size(43, 17);
            this.rdo4F10.TabIndex = 5;
            this.rdo4F10.Text = "F10";
            this.rdo4F10.UseVisualStyleBackColor = true;
            // 
            // rdo4F9
            // 
            this.rdo4F9.AutoSize = true;
            this.rdo4F9.Location = new System.Drawing.Point(180, 18);
            this.rdo4F9.Name = "rdo4F9";
            this.rdo4F9.Size = new System.Drawing.Size(37, 17);
            this.rdo4F9.TabIndex = 4;
            this.rdo4F9.Text = "F9";
            this.rdo4F9.UseVisualStyleBackColor = true;
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.rdo3F12);
            this.groupBox2.Controls.Add(this.rdo3Down);
            this.groupBox2.Controls.Add(this.rdo3F11);
            this.groupBox2.Controls.Add(this.rdo3F10);
            this.groupBox2.Controls.Add(this.rdo3F9);
            this.groupBox2.Location = new System.Drawing.Point(15, 98);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(310, 38);
            this.groupBox2.TabIndex = 2;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Search by Code";
            // 
            // rdo3F12
            // 
            this.rdo3F12.AutoSize = true;
            this.rdo3F12.Location = new System.Drawing.Point(266, 19);
            this.rdo3F12.Name = "rdo3F12";
            this.rdo3F12.Size = new System.Drawing.Size(43, 17);
            this.rdo3F12.TabIndex = 3;
            this.rdo3F12.Text = "F12";
            this.rdo3F12.UseVisualStyleBackColor = true;
            // 
            // rdo3Down
            // 
            this.rdo3Down.AutoSize = true;
            this.rdo3Down.Checked = true;
            this.rdo3Down.Location = new System.Drawing.Point(15, 19);
            this.rdo3Down.Name = "rdo3Down";
            this.rdo3Down.Size = new System.Drawing.Size(83, 17);
            this.rdo3Down.TabIndex = 4;
            this.rdo3Down.TabStop = true;
            this.rdo3Down.Text = "Arrow Down";
            this.rdo3Down.UseVisualStyleBackColor = true;
            // 
            // rdo3F11
            // 
            this.rdo3F11.AutoSize = true;
            this.rdo3F11.Location = new System.Drawing.Point(223, 20);
            this.rdo3F11.Name = "rdo3F11";
            this.rdo3F11.Size = new System.Drawing.Size(43, 17);
            this.rdo3F11.TabIndex = 2;
            this.rdo3F11.Text = "F11";
            this.rdo3F11.UseVisualStyleBackColor = true;
            // 
            // rdo3F10
            // 
            this.rdo3F10.AutoSize = true;
            this.rdo3F10.Location = new System.Drawing.Point(180, 20);
            this.rdo3F10.Name = "rdo3F10";
            this.rdo3F10.Size = new System.Drawing.Size(43, 17);
            this.rdo3F10.TabIndex = 1;
            this.rdo3F10.Text = "F10";
            this.rdo3F10.UseVisualStyleBackColor = true;
            // 
            // rdo3F9
            // 
            this.rdo3F9.AutoSize = true;
            this.rdo3F9.Location = new System.Drawing.Point(137, 19);
            this.rdo3F9.Name = "rdo3F9";
            this.rdo3F9.Size = new System.Drawing.Size(37, 17);
            this.rdo3F9.TabIndex = 0;
            this.rdo3F9.Text = "F9";
            this.rdo3F9.UseVisualStyleBackColor = true;
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.rdo2F8);
            this.groupBox4.Controls.Add(this.rdo2F7);
            this.groupBox4.Controls.Add(this.rdo2F6);
            this.groupBox4.Controls.Add(this.rdo2F5);
            this.groupBox4.Location = new System.Drawing.Point(15, 52);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(310, 38);
            this.groupBox4.TabIndex = 1;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Lookup by Name or Description";
            // 
            // rdo2F8
            // 
            this.rdo2F8.AutoSize = true;
            this.rdo2F8.Location = new System.Drawing.Point(109, 18);
            this.rdo2F8.Name = "rdo2F8";
            this.rdo2F8.Size = new System.Drawing.Size(37, 17);
            this.rdo2F8.TabIndex = 7;
            this.rdo2F8.Text = "F8";
            this.rdo2F8.UseVisualStyleBackColor = true;
            // 
            // rdo2F7
            // 
            this.rdo2F7.AutoSize = true;
            this.rdo2F7.Location = new System.Drawing.Point(152, 19);
            this.rdo2F7.Name = "rdo2F7";
            this.rdo2F7.Size = new System.Drawing.Size(37, 17);
            this.rdo2F7.TabIndex = 6;
            this.rdo2F7.Text = "F7";
            this.rdo2F7.UseVisualStyleBackColor = true;
            // 
            // rdo2F6
            // 
            this.rdo2F6.AutoSize = true;
            this.rdo2F6.Checked = true;
            this.rdo2F6.Location = new System.Drawing.Point(23, 18);
            this.rdo2F6.Name = "rdo2F6";
            this.rdo2F6.Size = new System.Drawing.Size(37, 17);
            this.rdo2F6.TabIndex = 5;
            this.rdo2F6.TabStop = true;
            this.rdo2F6.Text = "F6";
            this.rdo2F6.UseVisualStyleBackColor = true;
            // 
            // rdo2F5
            // 
            this.rdo2F5.AutoSize = true;
            this.rdo2F5.Location = new System.Drawing.Point(66, 18);
            this.rdo2F5.Name = "rdo2F5";
            this.rdo2F5.Size = new System.Drawing.Size(37, 17);
            this.rdo2F5.TabIndex = 4;
            this.rdo2F5.Text = "F5";
            this.rdo2F5.UseVisualStyleBackColor = true;
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.rdo1F8);
            this.groupBox3.Controls.Add(this.rdo1F7);
            this.groupBox3.Controls.Add(this.rdo1F6);
            this.groupBox3.Controls.Add(this.rdo1F5);
            this.groupBox3.Location = new System.Drawing.Point(15, 6);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(310, 38);
            this.groupBox3.TabIndex = 0;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Lookup by Code";
            // 
            // rdo1F8
            // 
            this.rdo1F8.AutoSize = true;
            this.rdo1F8.Location = new System.Drawing.Point(152, 19);
            this.rdo1F8.Name = "rdo1F8";
            this.rdo1F8.Size = new System.Drawing.Size(37, 17);
            this.rdo1F8.TabIndex = 3;
            this.rdo1F8.Text = "F8";
            this.rdo1F8.UseVisualStyleBackColor = true;
            // 
            // rdo1F7
            // 
            this.rdo1F7.AutoSize = true;
            this.rdo1F7.Location = new System.Drawing.Point(109, 20);
            this.rdo1F7.Name = "rdo1F7";
            this.rdo1F7.Size = new System.Drawing.Size(37, 17);
            this.rdo1F7.TabIndex = 2;
            this.rdo1F7.Text = "F7";
            this.rdo1F7.UseVisualStyleBackColor = true;
            this.rdo1F7.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged);
            // 
            // rdo1F6
            // 
            this.rdo1F6.AutoSize = true;
            this.rdo1F6.Location = new System.Drawing.Point(66, 20);
            this.rdo1F6.Name = "rdo1F6";
            this.rdo1F6.Size = new System.Drawing.Size(37, 17);
            this.rdo1F6.TabIndex = 1;
            this.rdo1F6.Text = "F6";
            this.rdo1F6.UseVisualStyleBackColor = true;
            // 
            // rdo1F5
            // 
            this.rdo1F5.AutoSize = true;
            this.rdo1F5.Checked = true;
            this.rdo1F5.Location = new System.Drawing.Point(23, 19);
            this.rdo1F5.Name = "rdo1F5";
            this.rdo1F5.Size = new System.Drawing.Size(37, 17);
            this.rdo1F5.TabIndex = 0;
            this.rdo1F5.TabStop = true;
            this.rdo1F5.Text = "F5";
            this.rdo1F5.UseVisualStyleBackColor = true;
            // 
            // btnCancel
            // 
            this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnCancel.Location = new System.Drawing.Point(272, 328);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(64, 22);
            this.btnCancel.TabIndex = 7;
            this.btnCancel.Text = "&Cancel";
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
            // 
            // btnOk
            // 
            this.btnOk.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btnOk.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnOk.Location = new System.Drawing.Point(160, 328);
            this.btnOk.Name = "btnOk";
            this.btnOk.Size = new System.Drawing.Size(64, 22);
            this.btnOk.TabIndex = 9;
            this.btnOk.Text = "&Ok";
            this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
            // 
            // frmOptions
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.ClientSize = new System.Drawing.Size(384, 357);
            this.Controls.Add(this.btnOk);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.tbcOptions);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic);
            this.Name = "frmOptions";
            this.helpProvider.SetShowHelp(this, true);
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Options";
            this.Load += new System.EventHandler(this.frmOptions_Load);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmOptions_FormClosing);
            this.tbcOptions.ResumeLayout(false);
            this.tbpViewSummary.ResumeLayout(false);
            this.tbpViewSummary.PerformLayout();
            this.tbpMisc.ResumeLayout(false);
            this.tbpMisc.PerformLayout();
            this.tabKey.ResumeLayout(false);
            this.groupBox6.ResumeLayout(false);
            this.groupBox6.PerformLayout();
            this.groupBox5.ResumeLayout(false);
            this.groupBox5.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.ResumeLayout(false);

		}
		#endregion

		#region Private Events
		private void frmOptions_Load(object sender, System.EventArgs e)
		{

			InitView();
            DataFunctions.SetDftLanguage(this.arraycontrols, this.Name);   
		}	

		private void btnOk_Click(object sender, System.EventArgs e)
		{
            if (SaveOption())
            {
                this.Close();
            }
		}

		private void btnCancel_Click(object sender, System.EventArgs e)
		{
			this.Close();

		}
		#endregion

		#region Private Functions
		private void InitView()
		{	





            DBAccess dbcon = new DBAccess(false, false); 
            LoginUtil loginUtil = new LoginUtil();

            string strResourcedir = loginUtil.GetResourcedir(false);
            strOptionIniFile = strResourcedir + Constants.LOGFILE_NAME;

            txtDefaultSrever.Text = loginUtil.GetInIString("Default", SysVar.UserName + "_Server", strOptionIniFile).Trim();
            txtDefaultDatabase.Text = loginUtil.GetInIString("Default", SysVar.UserName + "_Database", strOptionIniFile).Trim();

            chkAP.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "AP");
            chkAr.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "AR");
            chkGL.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "GL");
            chkIM.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "IM");
            chkMF.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "M");
            chkOe.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "OE");
            chkPO.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "PO");
            chkRm.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "RM");
            chkTP.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "TP");
            chkTW.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "TW");
            chkEX.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "ES");
            chkPd.Checked = DataFunctions.GetmSwitchValue(dbcon, "ShowSummaryStatus", "PD");


            string strCompanNameColor = DataFunctions.GetFieldValue(dbcon, "mUser", "CompanyNameColor", "username='" +SysVar.UserName +"'");
            strCompanNameColor = (strCompanNameColor == string.Empty ? "0" : strCompanNameColor);
            this.btnColor.BackColor = System.Drawing.Color.FromArgb(int.Parse(strCompanNameColor, System.Globalization.NumberStyles.AllowHexSpecifier));

            string strKey = DataFunctions.GetmMiscValue(dbcon, "LookUpKeyByCode", "M");
            Control con = GetControl("rdo1" + strKey);
            if (con != null)
                (con as RadioButton).Checked = true;
            else
                rdo1F5.Checked = true;
            strKey = DataFunctions.GetmMiscValue(dbcon, "LookUpKeyByDescription", "M");
            con = GetControl("rdo2" + strKey);
            if (con != null)
                (con as RadioButton  ).Checked = true;
            else
                rdo2F6.Checked = true;


            strKey = DataFunctions.GetmMiscValue(dbcon, "SearchKeyByCode", "M");
            con = GetControl("rdo3" + strKey);
            if (con != null)
                (con as RadioButton).Checked = true;
            else
                rdo3Down.Checked = true;

            strKey = DataFunctions.GetmMiscValue(dbcon, "PrevTABCode", "M").Trim().ToUpper();
            switch (strKey)
            {
                case "PAGE UP":
                    rdoPrevTab_PageUp.Checked = true;
                    break;
                default:
                    rdoPrevTab_Left.Checked = true;
                    break;
            }
            strKey = DataFunctions.GetmMiscValue(dbcon, "NextTABCode", "M").Trim().ToUpper();
            switch (strKey)
            {
                case "PAGE DOWN":
                    rdoNextTab_PageDown.Checked = true;
                    break;
                default:
                    rdoNextTab_Right.Checked = true;
                    break;
            }

            strKey = DataFunctions.GetmMiscValue(dbcon, "SearchKeyByDescription", "M");
            con = GetControl("rdo4" + strKey);
            if (con != null)
                (con as RadioButton).Checked = true;
            else
                rdo4ShiftDown.Checked = true;

            dbcon.CloseCon();        
		}

		private bool SaveOption()
		{
			bool bOptionsWriteToFile = true;
            try
            {
                    LoginUtil loginUtil = new LoginUtil();
                    DBAccess dbcon = new DBAccess(false, false);

                    string strResourcedir = loginUtil.GetResourcedir(false);
                    strOptionIniFile = strResourcedir + Constants.LOGFILE_NAME;

                    loginUtil.WriteIniString("Default", SysVar.UserName + "_Server", txtDefaultSrever.Text, strOptionIniFile);
                    loginUtil.WriteIniString("Default", SysVar.UserName + "_Database", txtDefaultDatabase.Text, strOptionIniFile);
                    dbcon.ExecuteSql("Update mUser set CompanyNameColor='" + this.btnColor.BackColor.ToArgb().ToString("x") + "' where username='" + SysVar.UserName + "'");
                  
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkAP.Checked ? "1": "0")  + " where switchname ='ShowSummaryStatus' and switchsys='AP'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkAr.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='AR'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkGL.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='GL'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkIM.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='IM'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkMF.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='M'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkOe.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='OE'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkPO.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='PO'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkRm.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='RM'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkTP.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='TP'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkTW.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='TW'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkEX.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='ES'");
                    dbcon.ExecuteSql("Update mswitch set SwitchValue=" + (chkPd.Checked ? "1" : "0") + " where switchname ='ShowSummaryStatus' and switchsys='PD'");

                    dbcon.ExecuteSql("Update mMiscSwitch set SwitchValue='" + GetKey("LookUpKeyByCode") + "' where switchname ='LookUpKeyByCode' and systemname='M'");
                    dbcon.ExecuteSql("Update mMiscSwitch set SwitchValue='" + GetKey("LookUpKeyByDescription") + "' where switchname ='LookUpKeyByDescription' and systemname='M'");
                    dbcon.ExecuteSql("Update mMiscSwitch set SwitchValue='" + GetKey("SearchKeyByCode") + "' where switchname ='SearchKeyByCode' and systemname='M'");
                    dbcon.ExecuteSql("Update mMiscSwitch set SwitchValue='" + GetKey("SearchKeyByDescription") + "' where switchname ='SearchKeyByDescription' and systemname='M'");

                    dbcon.ExecuteSql("Update mMiscSwitch set SwitchValue='" + GetKey("PrevTABCode") + "' where switchname ='PrevTABCode' and systemname='M'");
                    dbcon.ExecuteSql("Update mMiscSwitch set SwitchValue='" + GetKey("NextTABCode") + "' where switchname ='NextTABCode' and systemname='M'");
                    #region Look up key
                    string strKeyChar = DataFunctions.GetmMiscValue(dbcon, "LookUpKeyByCode", "M").Trim().ToUpper();
                    switch (strKeyChar)
                    {
                        case "F6":
                            SysVar.SystemKey.LookUPKey = Keys.F6;
                            break;
                        case "F7":
                            SysVar.SystemKey.LookUPKey = Keys.F7;
                            break;
                        case "F8":
                            SysVar.SystemKey.LookUPKey = Keys.F8;
                            break;
                        default:
                            SysVar.SystemKey.LookUPKey = Keys.F5;
                            break;
                    }
                    strKeyChar = DataFunctions.GetmMiscValue(dbcon, "LookUpKeyByDescription", "M").Trim().ToUpper();
                    switch (strKeyChar)
                    {
                        case "F5":
                            SysVar.SystemKey.LookUPSecKey = Keys.F5;
                            break;
                        case "F7":
                            SysVar.SystemKey.LookUPSecKey = Keys.F7;
                            break;
                        case "F8":
                            SysVar.SystemKey.LookUPSecKey = Keys.F8;
                            break;
                        default:
                            SysVar.SystemKey.LookUPSecKey = Keys.F6;
                            break;
                    }
                    #endregion
                    #region Search key
                    strKeyChar = DataFunctions.GetmMiscValue(dbcon, "SearchKeyByCode", "M").Trim().ToUpper();
                    switch (strKeyChar)
                    {
                        case "F9":
                            SysVar.SystemKey.SearchByCodeKey = Keys.F9;
                            break;
                        case "F10":
                            SysVar.SystemKey.SearchByCodeKey = Keys.F10;
                            break;
                        case "F11":
                            SysVar.SystemKey.SearchByCodeKey = Keys.F11;
                            break;
                        case "F12":
                            SysVar.SystemKey.SearchByCodeKey = Keys.F12;
                            break;
                        default:
                            SysVar.SystemKey.SearchByCodeKey = Keys.Down;
                            break;
                    }
                    strKeyChar = DataFunctions.GetmMiscValue(dbcon, "PrevTABCode", "M").Trim().ToUpper();
                    switch (strKeyChar)
                    {
                        case "PAGE UP":
                            SysVar.SystemKey.PrevTABCode = Keys.PageUp;
                            break;
                        default:
                            SysVar.SystemKey.PrevTABCode = Keys.Left;
                            break;
                    }
                    strKeyChar = DataFunctions.GetmMiscValue(dbcon, "NextTABCode", "M").Trim().ToUpper();
                    switch (strKeyChar)
                    {
                        case "PAGE DOWN":
                            SysVar.SystemKey.NextTABCode = Keys.PageDown;
                            break;
                        default:
                            SysVar.SystemKey.NextTABCode = Keys.Right;
                            break;
                    }
                    strKeyChar = DataFunctions.GetmMiscValue(dbcon, "SearchKeyByDescription", "M").Trim().ToUpper();
                    switch (strKeyChar)
                    {
                        case "F9":
                            SysVar.SystemKey.SearchByNameKey = Keys.F9;
                            break;
                        case "F10":
                            SysVar.SystemKey.SearchByNameKey = Keys.F10;
                            break;
                        case "F11":
                            SysVar.SystemKey.SearchByNameKey = Keys.F11;
                            break;
                        case "F12":
                            SysVar.SystemKey.SearchByNameKey = Keys.F12;
                            break;
                        default:
                            SysVar.SystemKey.SearchByNameKey = Keys.Down;
                            SysVar.SystemKey.SearchByNameShiftKey = Keys.Shift;
                            break;
                    }
                    #endregion

                 
                    dbcon.CloseCon();        
            }
            catch (Exception ex)
            {
                bOptionsWriteToFile = false;
                ExceptionManager.ProcessException(ex);
            }

			return bOptionsWriteToFile;
		}
		#endregion


        private string GetKey(string strSwitchName)
        {
            switch (strSwitchName.ToLower().Trim())
            {
                case  "lookupkeybycode":
                    if (rdo1F6.Checked) return "F6";
                    if (rdo1F7.Checked) return "F7";
                    if (rdo1F8.Checked) return "F8";
                    return "F5";
                case "lookupkeybydescription":
                    if (rdo2F5.Checked) return "F5";
                    if (rdo2F7.Checked) return "F7";
                    if (rdo2F8.Checked) return "F8";
                    return "F6";
                case "searchkeybycode":
                    if (rdo3F9.Checked) return "F9";
                    if (rdo3F10.Checked) return "F10";
                    if (rdo3F11.Checked) return "F11";
                    if (rdo3F12.Checked) return "F12";
                    return "Down";
                case "searchkeybydescription":
                    if (rdo4F9.Checked) return "F9";
                    if (rdo4F10.Checked) return "F10";
                    if (rdo4F11.Checked) return "F11";
                    if (rdo4F12.Checked) return "F12";
                    return "Shift+Down";
                case "prevtabcode":
                    if (rdoPrevTab_PageUp.Checked) return "Page Up";                    
                    return "Left";
                case "nexttabcode":
                    if (rdoNextTab_PageDown.Checked) return "Page Down";
                    return "Right";
            }
            return "";
        }

        private void btnColor_Click(object sender, EventArgs e)
        {
            if (this.colorDialog.ShowDialog() == DialogResult.OK)
            {
                this.btnColor.BackColor = this.colorDialog.Color;  
            }
        }

        private void tbcOptions_DrawItem(object sender, DrawItemEventArgs e)
        {
            BaseFunctions.TabControl_DrawItem(sender, e, true);  
        }

        private void frmOptions_FormClosing(object sender, FormClosingEventArgs e)
        {
            DataFunctions.InitiateLanguageInfo(this.arraycontrols,this.arrayLablecontrols , this.Name); 
        }

        private void groupBox2_Enter(object sender, EventArgs e)
        {

        }

        private void radioButton4_CheckedChanged(object sender, EventArgs e)
        {

        }


	}
}
